#!/bin/bash
#leao:Fri Aug 23 08:42:12 AM CST 2024
read -p "请输入10个数
" num1 nums 
maxNum=$num1
for val in $num1 $nums ;do
    if [ $maxNum -lt $val ];then
    maxNum=$val
    fi
done
echo "最大值为" $maxNum